package com.xuzhao.dao;

import com.xuzhao.entity.Person;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by xz on 2017/9/5.
 */
public interface PersonDao extends JpaRepository<Person,Integer> {
    List<Person>findByAge(Integer age);//名字采用驼峰命名法 findBy+属性名,执行时JPA自动实现(不要写错了)
}
